package com.cf.mvp.sample.mvp.contract;

import com.cf.mvp.mvp.IBaseView;
import com.cf.mvp.mvp.IModel;
import com.cf.mvp.mvp.IPresenter;

public interface MainContract {

    interface View extends IBaseView {
        void loginSuccess();

        void loginFailed();
    }

    interface Model extends IModel<Presenter> {
        void requestLogin(String name, String pwd);
    }

    interface Presenter extends IPresenter<View> {
        void login(String name, String pwd);

        void requestSuccess(Object object);
    }

}
